package com.czf.consumer;

import com.czf.dubboInterface.DemoService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerController {

    @DubboReference
    private DemoService demoService;

    @PostMapping("/test")
    public void test(){
        String s = demoService.sayHello("world!!!");
        System.out.println(s);
    }

    @PostMapping("/test1")
    public void test1(){
        System.out.println("s");
    }
}
